<%@ taglib prefix="s" uri="/struts-tags"%>

<p>Users</p>

<s:if test="users.size > 0">
    <table>
        <s:iterator value="users">
            <tr id="row_<s:property value="id"/>">
                <td style="border:1px solid black;">
                    <s:property value="name" />
                </td>
                <td style="border:1px solid black;">
                    <s:url id="removeUrl" action="removeUser">
                        <s:param name="id" value="id" />
                    </s:url>
                    <s:a href="%{removeUrl}" targets="users">Remove</s:a>
                </td>
            </tr>
        </s:iterator>
    </table>
</s:if>

